<!--
 * @FileDescription 零件车
 * @Author lz
 * @Date 20230224 16:07:52
 * @LastEditors lz
 * @LastEditTime 20230224 16:07:52
-->
<template>
    <div class="partsCar" v-if="state.show">
        <div class="tit">零件车</div>
        <img src="/structure/ljc_line.png" class="line">
        <img src="/structure/downward_arr.png" class="packUp" @click="show()">

        <div class="partsContent">
            <div class="partsBox">
                <img src="/structure/ljc_ret_ico.png" class="putBack">
                <!-- <img src="/structure/后悬架总成.png" class="parts_icc"> -->
                <div class="partsName">后悬架总成</div>
            </div>
            <div class="partsBox">
                <img src="/structure/ljc_ret_ico.png" class="putBack">
                <!-- <img src="/structure/后悬架总成.png" class="parts_icc"> -->
                <div class="partsName">后悬架总成</div>
            </div>
            <div class="partsBox">
                <img src="/structure/ljc_ret_ico.png" class="putBack">
                <!-- <img src="/structure/后悬架总成.png" class="parts_icc"> -->
                <div class="partsName">后悬架总成</div>
            </div>
            <div class="partsBox">
                <img src="/structure/ljc_ret_ico.png" class="putBack">
                <!-- <img src="/structure/后悬架总成.png" class="parts_icc"> -->
                <div class="partsName">后悬架总成</div>
            </div>
            <div class="partsBox">
                <img src="/structure/ljc_ret_ico.png" class="putBack">
                <!-- <img src="/structure/后悬架总成.png" class="parts_icc"> -->
                <div class="partsName">后悬架总成</div>
            </div>
        </div>
        <div class="l_btn"></div>
        <div class="r_btn"></div>
    </div>
    <div class="StowedState" v-if="!state.show" @click="show()">
        <img src="/structure/ExpandArrow_r.png" class="expArr">
    </div>
</template>

<script setup lang="ts">
import { reactive, ref, toRefs, onBeforeMount, onMounted, onBeforeUpdate, onUpdated, onUnmounted, StyleValue, defineProps, defineEmits } from 'vue'
const state = reactive({
    show: true,
});
function show() {
    state.show = !state.show
}
</script>

<style scoped>
.partsCar {
    position: absolute;
    bottom: -40px;
    left: 450px;
    width: 1020px;
    height: 270px;
    background-image: url('/structure/ljc_bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.line {
    position: absolute;
    left: 16px;
    top: 32px;
    width: 985px;
    height: 28px;
}

.StowedState {
    position: absolute;
    right: 450PX;
    bottom: -4px;
    width: 52px;
    height: 52px;
    background-image: url('/structure/stowedState_r_bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(90deg);
}

.expArr {
    width: 27px;
    height: 32px;
    margin-top: 10px;
    margin-left: 13px;
}

.tit {
    font-size: 22px;
    font-family: YouSheBiaoTiHei;
    font-weight: 400;
    color: #ffffff;
    padding-left: 48px;
    padding-top: 12px;
}

.packUp {
    position: absolute;
    right: 4px;
    top: 13px;
    width: 32px;
    height: 27px;
}

.partsContent {
    width: 100%;
    display: flex;
    justify-content: center;
}

.partsBox {
    width: 160px;
    height: 96px;
    background-image: url('/structure/ljc_box_bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    text-align: center;
    line-height: 105px;
    position: relative;
    margin-top: 26px;
    margin-left: 10px;
    margin-right: 10px;
}

.parts_icc {
    width: 160px;
    height: 90px;
    margin-top: -10px;
}

.putBack {
    position: absolute;
    right: 0;
    top: 0;
    width: 35px;
    height: 35px;
}

.partsName {
    font-size: 16px;
    font-weight: 400;
    color: #B1D0F4;
    margin-top: -30px;
}

.l_btn {
    position: absolute;
    left: 30px;
    top: 111px;
    width: 17px;
    height: 21px;
    background-image: url('/structure/ljc_l_arr.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.r_btn {
    position: absolute;
    right: 30px;
    top: 111px;
    width: 17px;
    height: 21px;
    background-image: url('/structure/ljc_r_arr.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
</style>